package org.azj.sqlStatementGenerator;

import org.azj.dbOperatorComponent.ColumnProperty;


// the class that will be exposed to the final user
public class SqlStatementFactory {
	public static Statement GetSqlStatement(
			SqlStatementType type, 
			ColumnProperty columnProperty, OPERATOR operator, Object value) {
		
		switch (type) {
		case BRACKET:
			return new BracketStatement();			

		case CONCRETE:
			return new ConcreateStatement(columnProperty, operator, value);
			
		case LOGIC_OR:
			return new LogicOrOpStatement();
			
		case LOGIC_AND:
			return new LogicAndOpStatement();
			
		default:
			break;
		}
		
		return null;
	}
}
